package kr.hkit.PowerJava.chapter22.work3;


import java.util.ArrayList;

import kr.hkit.PowerJava.chapter22.work2.dao.StudentMangerImpl;
import kr.hkit.PowerJava.chapter22.work2.vo.Student;
public class TestMain {
      public static void main(String[] args) {
		ArrayList<Student> stdList = new ArrayList<>();
		StudentMangerImpl sm = new StudentMangerImpl(stdList);
		//추가
		Student std1 = new Student(1,"김태희", 90, 90, 90);
	    sm.addItem(std1);
	    Student std2 = new Student(2,"제시카", 89, 70, 77);
	    sm.addItem(std2);
		Student std3 = new Student(3,"이민정", 80, 80, 80);
		sm.addItem(std3);
		Student std4 = new Student(4,"강예원", 75, 75, 75);
	    sm.addItem(std4);
		//삭제
	   /* sm.delItem(std1);
	    sm.delItem(std2);*/
    	
	    //검색
	 
	    
	    //수정
	    Student updateItem = new Student(1,"김태희", 91, 93, 94);
	    sm.updateItem(updateItem);
	    
	    //출력
	    sm.prnItems();
	    
	    
	}
}
